package javax.wireless.messaging;

import java.io.IOException;
import java.io.InterruptedIOException;
import javax.microedition.io.Connection;

public interface MessageConnection extends Connection {
  public static final String BINARY_MESSAGE = "binary";
  
  public static final String TEXT_MESSAGE = "text";
  
  int numberOfSegments(Message paramMessage);
  
  Message newMessage(String paramString);
  
  Message newMessage(String paramString1, String paramString2);
  
  Message receive() throws IOException, InterruptedIOException;
  
  void send(Message paramMessage) throws IOException, InterruptedIOException;
  
  void setMessageListener(MessageListener paramMessageListener) throws IOException;
}


/* Location:              C:\Java_ME_platform_SDK_3.0\lib\jsr120_1.1.jar!\javax\wireless\messaging\MessageConnection.class
 * Java compiler version: 3 (47.0)
 * JD-Core Version:       1.1.3
 */